package com.one.consumer.user.model.extra;

import com.one.common.model.extra.BaseExtra;
import com.one.consumer.user.model.item.AddressItem;

/**
 * author ：zhulunjun
 * email  ：zhulunjun@qq.com
 * date   ：2018/10/28 5:33 PM
 * description ：地址参数
 **/
public class AddressExtra extends BaseExtra {

    public static final int ADD =1;
    public static final int UPDATE =2;

    private int type;
    private String id;
    private AddressItem addressItem;

    public AddressExtra(int type) {
        this.type = type;
    }

    public AddressExtra(String id) {
        this.id = id;
    }

    public AddressExtra(int type, String id) {
        this.type = type;
        this.id = id;
    }

    public AddressExtra(int type, AddressItem addressItem) {
        this.type = type;
        this.addressItem = addressItem;
    }

    public AddressItem getAddressItem() {
        return addressItem;
    }

    public void setAddressItem(AddressItem addressItem) {
        this.addressItem = addressItem;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
